layui.config({
    base: '/layuiadmin/'
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index'], function(){

    var $ = layui.$
    ,form = layui.form
    ,admin = layui.admin;

  });